package com.tianxiabuyi.model.pojo;



import com.alibaba.fastjson.annotation.JSONField;
import com.tianxiabuyi.model.base.TXBYObject;

import java.util.ArrayList;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name="survey_question")
public class SurveyQuestion extends TXBYObject
{

    @Column(name="survey_id")
    @JSONField(name ="survey_id")
    private Integer surveyId;

    @Column(name="show_order")
    @JSONField(name ="show_order")
    private Integer showOrder;
    private String title;
    private Integer type;

    @Column(name="parent_id")
    @JSONField(name ="parent_id")
    private Integer parentId;
    private Integer necessary;
    private String detail;

    @Transient
    private List<SurveyQuestion> quests = new ArrayList();

    @Transient
    private List<SurveyQuestion> multiInputs = new ArrayList();

    @Transient
    private List<SurveyOptions> options = new ArrayList();



    public List<SurveyQuestion> getQuests() {
        return this.quests;
    }

    public void setQuests(List<SurveyQuestion> quests) {
        this.quests = quests;
    }

    public List<SurveyQuestion> getMultiInputs() {
        return this.multiInputs;
    }

    public void setMultiInputs(List<SurveyQuestion> multiInputs) {
        this.multiInputs = multiInputs;
    }

    public String getDetail() {
        return this.detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Integer getNecessary() {
        return this.necessary;
    }

    public void setNecessary(Integer necessary) {
        this.necessary = necessary;
    }



    public Integer getParentId() {
        return this.parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getShowOrder() {
        return this.showOrder;
    }

    public void setShowOrder(Integer showOrder) {
        this.showOrder = showOrder;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getType() {
        return this.type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getSurveyId() {
        return this.surveyId;
    }

    public void setSurveyId(Integer surveyId) {
        this.surveyId = surveyId;
    }

    public List<SurveyOptions> getOptions() {
        return this.options;
    }

    public void setOptions(List<SurveyOptions> options) {
        this.options = options;
    }
}